package com.learning.jquizenglish.common.fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.learning.jquizenglish.common.controller.HeaderBarFactory;
import com.learning.jquizenglish.common.controller.HeaderBarQuiz;

public abstract class JQuizEnglishFragment extends JQuizTaskFragment {

	protected HeaderBarFactory mHeaderBarController; 
	
	@Override
	protected View onCreateHeaderView(LayoutInflater inflater,
			ViewGroup container) {
		mHeaderBarController = new HeaderBarFactory(this);
		return mHeaderBarController.onCreateHeaderView(inflater, container);
	}
	
	public void showHeaderMore(){
		HeaderBarQuiz headerBarQuiz = mHeaderBarController.mHeaderBarQuiz;
		if(headerBarQuiz!=null){
			headerBarQuiz.showMoreButton();
		}
	}
	
	public void hideHeaderMore(){
		HeaderBarQuiz headerBarQuiz = mHeaderBarController.mHeaderBarQuiz;
		if(headerBarQuiz!=null){
			headerBarQuiz.hideMoreButton();
		}
	}
	
	public void onComment(){
		
	}
	
	public void onHelp(){
		
	}
}
